<?php
/**
* @software         [JiJinCMS]
* @author           [上海集锦信息科技有限公司]
* @website          [http://www.jijinweb.com]
* @email            [sunny@jijinweb.com]
**/
namespace app\index\validate;
use think\validate;
class FileValidate extends validate{
    public $rule = [
        'file'=>['fileExt'=>'jpg,jpeg,png,gif','fileSize'=>3*1024*1024],
    ];
    protected $message = [
        'file.fileExt'=>'当前文件后缀名不可上传',
        'file.fileSize'=>'文件大小不能超出3M',
    ];
}

